package com.shopping.service;

import java.util.ArrayList;

import org.apache.commons.dbutils.QueryRunner;
import org.apache.commons.dbutils.handlers.ScalarHandler;

import com.shopping.pojo.Order;
import com.shopping.pojo.User;
import com.shopping.utils.C3p0Utils;

public interface OrderService {
	// 查询所有
	ArrayList<Order> getFindAll();
	
	// 分页查询
	public ArrayList<Order> getOrderPage(int page, int limit);
	
	// 添加订单
	boolean addOrder(Order order);
	
	// 获取数据总量
	public long getTotalData();
	
	// 更新订单
	boolean updateOrder(Order order);
	
	// 删除订单
	boolean deleteOrder(long id);
	
}
